Exploratory Functional PCA with Sparse Data {https://t.co/49KGdNmyKI} #rstats #DataScience
— R-bloggers (@Rbloggers) July 8, 2021
Taking Outlier Treatment to the Next Level {https://t.co/yBzhcfQYcX} #rstats #DataScience
— R-bloggers (@Rbloggers) July 6, 2021
shiny.fluent Video Tutorial: Building Beautiful Shiny Apps {https://t.co/v4aKVDJe9M} #rstats #DataScience
— R-bloggers (@Rbloggers) July 6, 2021
Interest Rate Swap Pricing using R code {https://t.co/9I5ZBWAKoE} #rstats #DataScience
— R-bloggers (@Rbloggers) July 10, 2021
How to Create a Covariance Matrix in R {https://t.co/AXUGktYu07} #rstats #DataScience
— R-bloggers (@Rbloggers) July 11, 2021
Using different fonts with ggplot2 {https://t.co/OTUlQSKhQj} #rstats #DataScience
— R-bloggers (@Rbloggers) July 8, 2021
Deploying Shiny Apps to Heroku with Docker From the Command Line {https://t.co/3ezdxdbhQe} #rstats #DataScience
— R-bloggers (@Rbloggers) July 11, 2021
BERT, reticulate & lexical semantics {https://t.co/zkyTjkVje1} #rstats #DataScience
— R-bloggers (@Rbloggers) July 10, 2021
Full Workspace Automation through a Programmatic Interface (API) Available Now {https://t.co/tNKiljLFHo} #rstats #DataScience
— R-bloggers (@Rbloggers) July 5, 2021
Free checklist: 30 Days to Data Analyst {https://t.co/anbhK7JPZe} #rstats #DataScience
— R-bloggers (@Rbloggers) July 7, 2021
Path of Least Resistance: Hosting Shiny Apps on https://t.co/VzcG1vmV7m {https://t.co/ikjCdm47gv} #rstats #DataScience
— R-bloggers (@Rbloggers) July 5, 2021
New R job: Statistician https://t.co/ZJsJQz5532 #rstats #DataScience #jobs
— R-bloggers (@Rbloggers) July 8, 2021
How to structure your data workflow efficiently using R {https://t.co/1uYfk6oxXJ} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
Time Series Introduction with R codes {https://t.co/Cv6BiCAf0X} #rstats #DataScience
— R-bloggers (@Rbloggers) June 16, 2021
Bayesian Linear Regression with Gibbs Sampling using R code {https://t.co/DBkKEAExyt} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
Tutorial: Build a Full Shiny Dashboard With shiny.fluent {https://t.co/zfojPNWmML} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
Retrieving Stock Price using R {https://t.co/0NIUaNMUaP} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
grafify: Make great-looking ggplot2 graphs quickly with R {https://t.co/ieMMplWSmA} #rstats #DataScience
— R-bloggers (@Rbloggers) June 15, 2021
Extract text from pdf in R and word Detection {https://t.co/Lg4NV52h51} #rstats #DataScience
— R-bloggers (@Rbloggers) June 15, 2021
New R textbook for machine learning {https://t.co/5pSLfPfLir} #rstats #DataScience
— R-bloggers (@Rbloggers) June 14, 2021
simplevis: interactive plots with plotly::ggplotly {https://t.co/9hFwIuT508} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
Using R to build predictions for UEFA Euro 2020 {https://t.co/4c6drfkAze} #rstats #DataScience
— R-bloggers (@Rbloggers) June 15, 2021
Lasso Regression Model with R code {https://t.co/7gylAZ2WQ0} #rstats #DataScience
— R-bloggers (@Rbloggers) June 12, 2021
Spatially weighted averages in R with sf {https://t.co/X7ZS1iOQkj} #rstats #DataScience
— R-bloggers (@Rbloggers) July 1, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```